package com.tuanzi.loan.business.repository.xhh.settlementsystem;

import com.tuanzi.loan.business.entity.xhh.settlementsystem.XhhSettlementIncome;
import com.tuanzi.loan.business.repository.xhh.settlementsystem.custom.XhhSettlementIncomeRepositoryCustom;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-16 15:34
 */
public interface XhhSettlementIncomeRepository extends XhhSettlementIncomeRepositoryCustom, JPAAuditRepository<XhhSettlementIncome, Long> {
    List<XhhSettlementIncome> findAllByBillId(Long billId);

    void deleteByCompanyId(Long companyId);

    void deleteByProductId(Long productId);

    List<XhhSettlementIncome> findAllByProductId(Long productId);
}
